<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <!-- Title and other stuffs -->
    <title>系统用户管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="">
    {include file="public/css" /}
    {include file="public/page_css" /}
</head>

<body>

{include file="public/top" /}

<!-- Main content starts -->

<div class="content">

    <!-- 左侧菜单 -->
    {include file="public/menu" /}
    <!-- 左侧菜单 ends -->

    <!-- Main bar -->
    <div class="mainbar">

        <!-- Page heading -->
        <div class="page-head">
            <h2 class="pull-left"><i class="icon-home"></i> 系统用户管理</h2>

            <!-- Breadcrumb -->
            <div class="bread-crumb pull-right">
                <a href="#" class="bread-current">系统管理</a>
            </div>

            <div class="clearfix"></div>

        </div>
        <!-- Page heading ends -->



        <!-- Matter -->

        <div class="matter">
            <div class="container">

                <!-- Dashboard Graph starts -->

                <div class="row">
                    <div class="col-md-12">
                        <a href="/admin/core/userAdd" class="btn btn-primary">添加用户</a>

                        <div class="widget">
                            <div class="widget-head">
                                <div class="pull-left">Tables</div>
                                <div class="widget-icons pull-right">
                                    <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a>
                                    <a href="#" class="wclose"><i class="icon-remove"></i></a>
                                </div>
                                <div class="clearfix"></div>
                            </div>

                            <div class="widget-content">

                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th>用户名</th>
                                        <th>状态</th>
                                        <th>创建时间</th>
                                        <th>最后登录时间</th>
                                        <th>最后登录IP</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>

                                    {volist name="lists" id="li"}
                                    <tr>
                                        <td>{$li.user_name}</td>
                                        <td>{$li.status}</td>
                                        <td>{$li.create_time}</td>
                                        <td>{$li.last_time}</td>
                                        <td>{$li.last_ip}</td>
                                        <td>
                                            <a href="{:url('/admin/core/userEdit',['id'=>$li.id])}" class="btn btn-xs btn-default" title="修改"><i class="icon-pencil"></i> </a>
                                            <button class="btn btn-xs btn-default" title="删除" ajax-id="data-delete" data-url="/admin/core/userDelete" data-id="{$li.id}"><i class="icon-trash"></i> </button>
                                            {if condition="$li.status_code eq 1"}
                                                <button class="btn btn-xs btn-default" title="冻结" ajax-id="status_up" data-status="2" data-url="/admin/core/userUpstatus" data-id="{$li.id}"><i class="icon-remove-sign"></i></button>
                                            {else/}
                                                <button class="btn btn-xs btn-default" title="解冻" ajax-id="status_up" data-status="1" data-url="/admin/core/userUpstatus" data-id="{$li.id}"><i class="icon-ok-sign"></i></button>
                                            {/if}
                                        </td>
                                    </tr>
                                    {/volist}

                                    </tbody>
                                </table>

                                <div class="pagination">

                                </div>

                            </div>

                        </div>


                    </div>
                </div>
                <!-- Dashboard graph ends -->


            </div>
        </div>

        <!-- Matter ends -->

    </div>

    <!-- Mainbar ends -->
    <div class="clearfix"></div>

</div>
<!-- Content ends -->

<!-- Footer starts -->
{include file="public/foot" /}
<!-- Footer ends -->

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>

{include file="public/js" /}
<script src="/static/admin/js/system/form.js"></script>
</body>
</html>